<%@ page language="java" import="java.util.*,com.lmpop.trade.ti_attach.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
   	<%
   		String attach_root_id = "",img_type="0";
   		if(request.getParameter("attach_root_id")!=null){
   			attach_root_id = request.getParameter("attach_root_id");
   		} 
   		if(request.getParameter("img_type")!=null){
   			img_type = request.getParameter("img_type");
   		} 
   		Ti_attachInfo attachInfo = new Ti_attachInfo();
   		List aList = attachInfo.getListByAttachrootid(attach_root_id);
   		boolean isEixst = false;
			if(aList!=null && aList.size()>0) isEixst = true;	
			
		
   		
   	%>
   	<input type="hidden" name="attach_root_id" value="<%=attach_root_id%>" />
 
   	<input type="hidden" name="attach_sign" value="insert" />
   	<input type="button" class="buttoncss" name="uploadImgWin" value="上传" onclick="window.open('/program/plugins/upload/uploadify/index.jsp?img_type=<%=img_type%>&attach_root_id=<%=attach_root_id%>');"/>
   	<%if(isEixst){%><img src="/program/images/ico_img.gif" style="vertical-align:middle;" /><%}%>